Design and Implementation of Deterministic Higher-order Patterns

نویسندگان

  • Tetsuo Yokoyama
  • Zhenjiang Hu
  • Masato Takeichi
چکیده

We introduce a class of deterministic higher-order patterns to Template Haskell for supporting declarative transformational programming with more elegant binding of pattern variables. Higher-order patterns are capable of checking and binding subtrees far from the root, which is useful for program manipulation. However, there are three major problems. First, it is difficult to explain why a particular desired matching result cannot be obtained because of the complicated higherorder matching algorithm. Second, the general higher-order matching algorithm is of high cost, which may be exponential time at worst. Third, the (possibly infinite) nondeterministic solutions of higher-order matching prevents it from being used in a functional setting. To resolve these problems, we impose reasonable restrictions on higher-order patterns to gain predictability, efficiency and determinism. We show that our deterministic higher-order patterns are powerful to support concise specification and efficient implementation of various kinds of program transformations for optimizations.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Design and Implementation of a Compact Super-Wideband Printed Antipodal Antenna Using Fractal Elements

A compact printed fractal antipodal bow-tie antenna is designed and implemented to simultaneously cover the operations in the C, X, and Ku-bands. It is demonstrated that by addition of small fractal elements at the sides of hexagonal arms of the bow-tie, a wide operating frequency range of 3.3 to 19.1 GHz can be covered while antenna size is only 30×34×1.2 mm3. In order to match the antenna to ...

متن کامل

Dynamic Facility Location with Stochastic Demand

Determination of facilities, such as factories or warehouses, location and availability conditions is one of the important and strategic decisions for an organization to make. Transportation costs that form a major part of goods price are dependent to this decision making. There are verity of methods have been presented to achieve the optimal locations of these facilities which are generally de...

متن کامل

Numerical Modeling of an Innovative Bipolar Plate Design Based on the Leaf Venation Patterns for PEM Fuel Cells

Flow channel design on bipolar plates has a direct effect on Proton Exchange Membrane (PEM) fuel cell performance. It has been found out that the flow field design has a deterministic role on the mass transport and water management, and therefore on the achieved power in PEM Fuel cells. This study concentrates on improvements in the fuel cell performance through optimization of channel dimensio...

متن کامل

Design, Simulation and implementation of active dual-band dipole antenna using a series stub

In this paper, a new method for designing an active dual-band dipole antenna is proposed. The operating frequencies of the proposed antenna are 150 and 450 MHz that are usually used in military applications. Using a series stub is the main idea in the proposed dual-band antenna, where it makes an independent resonance frequency higher than the main resonance frequency of a conventional dipole. ...

متن کامل

Advanced Programming Language Features for Executable Design Patterns “Better Patterns Through Reflection”

The Design Patterns book [GHJV94] presents 24 time-tested patterns that consistently appear in well-designed software systems. Each pattern is presented with a description of the design problem the pattern addresses, as well as sample implementation code and design considerations. This paper explores how the patterns from the “Gang of Four”, or “GOF” book, as it is often called, appear when sim...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2005